package com.bilibili.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("用户登录表单对象")
@Data
public class LoginForm {

    @ApiModelProperty(value = "账号", required = true)
    @NotBlank(message = "账号不能为空")
    private String account;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "验证码")
    private String verifyCode;
    @ApiModelProperty(value = "登录类型", notes = "1:账号密码登录;2:短信验证码登录;", required = true)
    @NotNull(message = "登录类型不能为空")
    private Integer type;

}
